// import Vue from 'vue'
import VueRouter from  'vue-router'
import Home from '../views/Home'
import Login from '../views/Login'
import Register from '../views/Register'
import Search from '../views/Search'

// Vue.use(VueRouter);

const routes=[
    {
        path:"/",
        name:"Home",
        component:Home
    },
    {
        path:"/Login",
        name:"Login",
        component:Login
    },
    {
        path:"/Register",
        name:"Register",
        component:Register
    },
    {
        path:"/Search/:keyword?",
        name:"Search",
        component:Search
    }
]

const router=new VueRouter({
    mode: "history",
    routes
});

export default router;
